
package com.fiap.starbuzzcoffee;

public abstract class CondimentDecorator extends Beverage{

    Beverage beverage;
    
    public CondimentDecorator(Beverage beverage) {
	this.beverage = beverage;
    }
    
    public final double cost() {
	return beverage.cost() + additionalCost();
    }
    
    public final String getDescription() {
	return beverage.getDescription() + additionalDescription();
    }    
    
    public abstract String additionalDescription();
    public abstract double additionalCost();
}
